package cn.stard.feign;

import cn.stard.domian.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "user-server")
public interface UserFeign {
    @GetMapping("/getUserByid/{id}")
    public User getUserByid(@PathVariable Long id);
}
